package com.ruoyi.web.core;

import java.util.concurrent.TimeUnit;

/**
 * 缓存标签枚举字典
 *
 * @author Jyl
 */
public enum RedisEnum
{

    CHANJETGETALLBIZINFO("getAllBizInfo"),

    S100(100, TimeUnit.SECONDS);

    private String value;
    private Integer time;
    private TimeUnit timeUnit;

    public String getValue()
    {
        return value;
    }

    public void setValue(String value)
    {
        this.value = value;
    }

    public Integer getTime()
    {
        return time;
    }

    public void setTime(Integer time)
    {
        this.time = time;
    }

    public TimeUnit getTimeUnit()
    {
        return timeUnit;
    }

    public void setTimeUnit(TimeUnit timeUnit)
    {
        this.timeUnit = timeUnit;
    }

    RedisEnum(String value)
    {
        this.value = value;
    }

    RedisEnum(Integer time, TimeUnit timeUnit)
    {
        this.time = time;
        this.timeUnit = timeUnit;
    }
}
